<%@ page contentType="text/html" language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib  uri="/struts-tags" prefix="s"%>
<jsp:include page="../include/_dwz_form_head.jsp" />
<div class="pageHeader">
    <form rel="pagerForm" onsubmit="return navTabSearch(this);" action="investment/WorkList" method="post">
          <div class="searchBar">
            <table class="searchContent">
            <tr>
                <td>
                        员工姓名：
                    <input type="text" id="workname" name="b_T_Ufp_Work.workname" value=""/>
                </td>
               <td>
                        考勤日期：
                    <input type="text" id="strattime" name="strattime" value="${strattime}" class="date"/>
                </td>
                   <td>
                        至：
                    <input type="text" id="endtime" name="endtime" value="${endtime}" class="date"/>
                </td>
                </tr>
            </table>
            <div class="subBar">
                <ul>
                    <li>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit">
              搜索
                                </button>
                            </div>
                        </div>
                    </li>
                          <li>
                      
                    </li>
                </ul>
            </div>
        </div>
    </form>
</div>
	<div class="pageContent">
								<div class="pageContent">
    					<div class="panelBar">
       <ul class="toolBar">
        <s:if test="str==1">
       <s:if test="dateString==1">
    			 <li>
                <a class="add" href="investment/Punch" target="ajaxTodo" ><span>上班签到</span></a>
            </li>
  		     	</s:if>
  			<s:else>
            <li>
                <a  href="investment/Punchnext" class="delete" target="ajaxTodo"><span> 下班签到</span></a>
            </li>
          </s:else>
     </s:if>
         
        </ul>
   		 </div>	
    <table class="table" width="100%" layoutH="123">
       <thead>
            <tr>
                <th width="3%">
                    <input type="checkbox" name="checkIds" group="checkIds" class="checkboxCtrl">
                </th>
                <th width="10%" >
              序号        
                </th>
                 <th width="10%" orderField=worktime <c:if test="${(pager.orderField)== 'worktime' }">class="${pager.orderDirection}"</c:if>>
              考勤日期
                </th>
             
                <th width="10%" orderField="workname" <c:if test="${(pager.orderField)== 'workname' }">class="${pager.orderDirection}"</c:if>>
                员工姓名
                </th>
                   
           
                  <th width="10%" orderField="depName" <c:if test="${(pager.orderField)== 'depName' }">class="${pager.orderDirection}"</c:if>>
               所属部门
                </th>              
                 <th width="10%" orderField="workstime" <c:if test="${(pager.orderField)== 'workstime' }">class="${pager.orderDirection}"</c:if>>
       	上班时间       
                </th>
                <th width="10%" orderField="worketime" <c:if test="${(pager.orderField)== 'worketime' }">class="${pager.orderDirection}"</c:if>>
          下班时间
                </th>
                <th width="10%" orderField="late" <c:if test="${(pager.orderField)== 'late' }">class="${pager.orderDirection}"</c:if>>
         迟到
                </th>
                <th width="10%" orderField="leaveearly" <c:if test="${(pager.orderField)== 'leaveearly' }">class="${pager.orderDirection}"</c:if>>
          早退
                </th>
      
            </tr>
        </thead>
        <tbody>
    
        <c:forEach items="${pager.pageRecords}" var="b_T_Ufp_Work" varStatus="s">
            <tr target="sid_user" rel="1">
                <td>
                    <input name="checkIds" value="${b_T_Ufp_Work.uuid}" type="checkbox">
                </td>
                 <td>
                  ${s.count +pager.pageSize*(pager.currentPage-1)}
                </td>
                <td>
                    ${b_T_Ufp_Work.worktime}
                </td>
                  <td>
                    ${b_T_Ufp_Work.workname}
                </td>
                <td>
                    ${b_T_Ufp_Work.depname}
                </td>
                  <td>
                    ${b_T_Ufp_Work.workstime}
                </td>
                <td>
                    ${b_T_Ufp_Work.worketime}
                </td>
                  <td>
                    ${b_T_Ufp_Work.late}
                </td>
                  <td>
                    ${b_T_Ufp_Work.leaveearly}
                </td>
            </tr>
            </c:forEach>
        </tbody>
    </table>
    <div class="panelBar">
        <jsp:include page="../include/_dwz_form_bottom.jsp" />
    </div>
</div>
